package com.ruoyi.command.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.command.mapper.DefectCasesMapper;
import com.ruoyi.command.domain.DefectCases;
import com.ruoyi.command.service.IDefectCasesService;

/**
 * 缺陷用例Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-12
 */
@Service
public class DefectCasesServiceImpl implements IDefectCasesService 
{
    @Autowired
    private DefectCasesMapper defectCasesMapper;

    /**
     * 查询缺陷用例
     * 
     * @param id 缺陷用例主键
     * @return 缺陷用例
     */
    @Override
    public DefectCases selectDefectCasesById(Long id)
    {
        return defectCasesMapper.selectDefectCasesById(id);
    }

    /**
     * 查询缺陷用例列表
     * 
     * @param defectCases 缺陷用例
     * @return 缺陷用例
     */
    @Override
    public List<DefectCases> selectDefectCasesList(DefectCases defectCases)
    {
        return defectCasesMapper.selectDefectCasesList(defectCases);
    }

    /**
     * 新增缺陷用例
     * 
     * @param defectCases 缺陷用例
     * @return 结果
     */
    @Override
    public int insertDefectCases(DefectCases defectCases)
    {
        return defectCasesMapper.insertDefectCases(defectCases);
    }

    /**
     * 修改缺陷用例
     * 
     * @param defectCases 缺陷用例
     * @return 结果
     */
    @Override
    public int updateDefectCases(DefectCases defectCases)
    {
        return defectCasesMapper.updateDefectCases(defectCases);
    }

    /**
     * 批量删除缺陷用例
     * 
     * @param ids 需要删除的缺陷用例主键
     * @return 结果
     */
    @Override
    public int deleteDefectCasesByIds(Long[] ids)
    {
        return defectCasesMapper.deleteDefectCasesByIds(ids);
    }

    /**
     * 删除缺陷用例信息
     * 
     * @param id 缺陷用例主键
     * @return 结果
     */
    @Override
    public int deleteDefectCasesById(Long id)
    {
        return defectCasesMapper.deleteDefectCasesById(id);
    }
}
